//
//  OrderManageTableViewCell.m
//  DistributorAB
//
//  Created by 主事丫环 on 2019/9/27.
//  Copyright © 2019 主事丫环. All rights reserved.
//

#import "OrderManageTableViewCell.h"

@implementation OrderManageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setFrame:(CGRect)frame{
    //frame.origin.x += 10;
    //frame.origin.y += 10;
    frame.size.height -= 10;
    //frame.size.width -= 20;
    [super setFrame:frame];
}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        UIView *bottomV = [[UIView alloc] init];
        bottomV.frame = CGRectMake(0, 0, KWIDTH, 120);
        bottomV.layer.cornerRadius = 10;
        bottomV.layer.masksToBounds = YES;
        [self.contentView addSubview:bottomV];
        
        UIImageView *proImg = [[UIImageView alloc] init];
        proImg.frame = CGRectMake(16, 15, 59, 59);
        proImg.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        //[proImg setImage:imgname(@"")];
        [bottomV addSubview:proImg];
        self.proImg = proImg;
        
        UILabel *proTitLab = [[UILabel alloc] init];
        //proTitLab.backgroundColor = [UIColor greenColor];
        proTitLab.frame = CGRectMake(proImg.right +10, 15, KWIDTH-32-59-13, 40);
        proTitLab.text = @"厂家生产智能插座接地铜片万能插座五金配件定制磷铜导电弹片";
        proTitLab.numberOfLines = 0;
        proTitLab.font = FontSize(14);
        proTitLab.textColor = [UIColor colorWithHexString:@"#5F5F5F"];
        [bottomV addSubview:proTitLab];
        self.proTitLab = proTitLab;
        
        UILabel *typeTitLab = [[UILabel alloc] init];
        //typeTitLab.backgroundColor = [UIColor redColor];
        typeTitLab.frame = CGRectMake(proImg.right +10, proTitLab.bottom +5, 30, 20);
        typeTitLab.text = @"型号";
        typeTitLab.font = FontSize(14);
        typeTitLab.textColor = [UIColor colorWithHexString:@"#666666"];
        [bottomV addSubview:typeTitLab];
        self.typeTitLab = typeTitLab;
        
        UILabel *typeConLab = [[UILabel alloc] init];
        //typeConLab.backgroundColor = [UIColor redColor];
        typeConLab.frame = CGRectMake(typeTitLab.right +10, proTitLab.bottom +5, KWIDTH/2, 20);
        typeConLab.text = @"AD1543236";
        typeConLab.font = FontSize(14);
        typeConLab.textColor = [UIColor colorWithHexString:@"#272727"];
        [bottomV addSubview:typeConLab];
        self.typeConLab = typeConLab;
        
        UILabel *countTitLab = [[UILabel alloc] init];
        //countTitLab.backgroundColor = [UIColor redColor];
        countTitLab.frame = CGRectMake(proImg.right +10, typeTitLab.bottom +5, 30, 20);
        countTitLab.text = @"数量";
        countTitLab.font = FontSize(14);
        countTitLab.textColor = [UIColor colorWithHexString:@"#666666"];
        [bottomV addSubview:countTitLab];
        
        UILabel *countLab = [[UILabel alloc] init];
        //countLab.backgroundColor = [UIColor redColor];
        countLab.frame = CGRectMake(countTitLab.right +10, typeTitLab.bottom +5, KWIDTH/2, 20);
        countLab.text = @"10000";
        countLab.font = FontSize(14);
        countLab.textColor = [UIColor colorWithHexString:@"#272727"];
        [bottomV addSubview:countLab];
        self.countLab = countLab;
        
    }
    return self;
}


@end
